﻿using System;
using System.Collections.Generic;

using System.Text;
using OpenTK;

using OpenTK.Graphics.OpenGL;

namespace Xeno.Core
{
    public class XenoCore
    {
        public static XenoMaterial MaterialOverride { get; set; }
        public static XenoGraph CurrentScene { get; set; }
        public static XenoApp CurrentApp { get; set; }
        public static XenoNode CurrentView { get; set; }
        public static XenoNode CurrentLight { get; set; }
        public static XenoNode PhysicsManager { get; set; }
        public static List<XenoNode> LightList { get; set; }
        public static float DisplayWidth
        {
            get
            {
                float ret = mDW;
                if (XenoRenderTarget.Bound != null)
                {
                    ret = XenoRenderTarget.Bound.Attached.Width;
                }
                return ret;
            }
            set
            {
                mDW = value;
            }
        }
        private static float mDW=0;

        public static float DisplayHeight
        {
            get
            {
                float ret = mDH;
                if (XenoRenderTarget.Bound != null)
                {
                    ret = XenoRenderTarget.Bound.Attached.Height;
                }
                return ret;
            }
            set
            {
                mDH = value;
            }
        }
        private static float mDH = 0;
    }
}
